import { UserConfig } from "vite";
import { UserInfo } from "@/api/user/types";

export interface IDeptQueueUserInfo {
  deptInfo: IDeptVo;
  userList: IUserVo[];
}

export interface IUserVo {
  id: number;
  nickname: string;
  gender: number;
}

export interface IDeptVo {
  id: number;
  name: string;
  parentId: number;
}
export interface IClientProject {
  id?: number;
  name?: string;
  deptId?: number;
  number?: number;
  unFinished?: number;
  finished?: number;
  priority?: number;
  duration?: number;
  deptName?: string;
}

export interface ICheckProject {
  id?: number; //项目id
  name?: string; // 项目名称
  deptId?: number; // 项目科室id
  sysDeptVO?: ICheckDept; // 项目科室
  priority?: number; // 项目优先级
  duration?: number; // 项目执行时间
  finished?: number; // 完成状态
  queueingDeptId?: number;
  docId?: number;
  docName?: string;
  deptList?: ICheckDept[];
}

export interface ICheckDept {
  id?: number; // 科室id
  name?: string; // 部门名称
  parentId?: number; // 父节点id
  treePath?: string; // 父节点id路径
  sort?: number; // 显示顺序
  status?: number; // 状态
  deleted?: number; // 删除标识
  createBy?: number; // 创建人
  updateBy?: number; // 修改人
  userList?: UserInfo[]; // 排队人数
}

export interface IDashBoard {
  projectNumber?: number;
  userNumber?: number;
  unFinish?: number;
  queueing?: number;
  finished?: number;
}

export interface IDeptQueueVo {
  deptId?: number;
  deptName?: string;
  num?: number;
}

export interface IAwaitQueueDetailVo {
  userId?: number;
  userName?: string;
  awaitingProjects?: IAwaitingProjects[];
}
interface IAwaitingProjects {
  id?: number;
  name?: string;
}
export interface IAwaitQueueDetailVo {
  userId?: number;
  userName?: string;
  queuing?: boolean;
  awaitingProjects?: IAwaitingProjects[];
}
interface IAwaitingProjects {
  id?: number;
  name?: string;
}
